<?php
class statisticsApi extends baseApi{

	public function hook_menu_expand(){
        return array(
            0 => array('name'=>'访客统计','url'=>url('admin_info/index'),'sequence'=>7),
            );
    }

	//获取蜘蛛数据图
	public function hook_home()
	{
		return model('statistics')->get_html();
	}

	public function hook_purview_admin()
    {
        return array(
            'admin_info'=>array(
                'name'=>'访客统计',
                'auth'=>array(
                    'index'=>'设置',
                ),
            ),
        );
    }
	
	
}